﻿// Type: D2L.Extensibility.AuthSdk.Impl.DefaultTimestampProvider
// Assembly: D2L.Extensibility.AuthSdk, Version=1.1.0.0, Culture=neutral, PublicKeyToken=null
// MVID: B2FBA42B-591C-474F-A782-6FF215FEDFB9
// Assembly location: C:\Users\leandro.perdizo\Desktop\D2L.Extensibility.AuthSdk.dll

using D2L.Extensibility.AuthSdk;
using System;

namespace D2L.Extensibility.AuthSdk.Impl
{
  internal sealed class DefaultTimestampProvider : ITimestampProvider
  {
    long ITimestampProvider.GetCurrentTimestampInMilliseconds()
    {
      return (long) DateTime.UtcNow.Subtract(new DateTime(1970, 1, 1, 0, 0, 0, DateTimeKind.Utc)).TotalMilliseconds;
    }
  }
}
